import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    pages: ['pages/logs/main', 'pages/index/main', 'pages/zan_dashboard/main', 'pages/hmx_notice/main', 'pages/hmx_mine/main', '^pages/hmx_index/main'], // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    window: {
      backgroundTextStyle: 'white',
      navigationBarBackgroundColor: '#cf512c',
      navigationBarTitleText: 'ZanUI-WeApp',
      navigationBarTextStyle: '#ffffff',
      backgroundColor: '#cf512c'
    },
    tabBar: {
      color: '#808080',
      selectedColor: '#cf512c',
      backgroundColor: '#f2f2f2',
      borderStyle: 'white',
      list: [{
          pagePath: 'pages/hmx_index/main',
          text: '公租房',
          iconPath: 'static/images/ico_33.png',
          selectedIconPath: 'static/images/ico_33_selected.png'
        },
        {
          pagePath: 'pages/zan_dashboard/main',
          text: 'zanui',
          iconPath: 'static/images/icon_tabbar.png',
          selectedIconPath: 'static/images/icon_tabbar.png'
        },
        {
          pagePath: 'pages/hmx_notice/main',
          text: '通知',
          iconPath: 'static/images/ico_39.png',
          selectedIconPath: 'static/images/ico_39_selected.png'
        },
        {
          pagePath: 'pages/hmx_mine/main',
          text: '我的',
          iconPath: 'static/images/ico_42.png',
          selectedIconPath: 'static/images/ico_42_selected.png'
        }
      ]
    }
  }
}
